package com.ler.yrmall.product.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ler.yrmall.config.LongToStringSerialize;
import com.ler.yrmall.product.entity.AttrEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Leron
 */
@Data
public class AttrGroupVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

    /**
     * 图标
     */
    private String icon;

    /**
     * 三级分类id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId;

    /**
     * 三级分类 [1,2,3]
     */
    @JsonSerialize(using = LongToStringSerialize.class)
    private List<Long> categoryPath;

    /**
     * 分类
     */
    private String categoryPathName;

    /**
     * 分组关联的属性列表
     */
    private List<AttrEntity> attrs;
}
